package com.example.controller.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * Copyright © 2016年 author. All rights reserved.
 *
 * @Author 临江仙 hzqiuxm@163.com
 * @Date 2017/10/31 0031 10:44
 */
@Aspect
@Component
public class LogAspect {


    @Before("execution(* com.example.controller..*.*(..)))")
    public void log() {
        System.out.println("before method log done ");
    }
}
